package cn.iocoder.yudao.module.crm.controller.admin.course.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import java.util.Set;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 课程课件分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CourseMaterialPageReqVO extends PageParam {

    @Schema(description = "课件图片")
    private String icon;

    @Schema(description = "展示顺序")
    private Integer sort;

    @Schema(description = "课件类型", example = "1")
    private Integer materialType;

    @Schema(description = "课件地址", example = "https://www.iocoder.cn")
    private String materialUrl;

    @Schema(description = "课件时长")
    private String materialDuration;

    @Schema(description = "老师")
    private Set<Long> teacherIds;

    @Schema(description = "是否已禁用。{ 0：正常；1：禁用；}")
    private Integer status;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "课程id - 查询已经关联课程的课件", example = "")
    private Long courseId;

    @Schema(description = "已经关联课程的课件Ids", example = "")
    private Set<Long> inCourseMaterialIds;

    @Schema(description = "课程id - 查询没有关联课程的课件", example = "")
    private Long notInCourseId;

    @Schema(description = "没有关联套餐的课程Ids", example = "")
    private Set<Long> notInCourseMaterialIds;

}